/*
 * @Description:
 * @Author: shilinzhou
 * @Date: 2023-12-27 13:33:40
 * @LastEditors: shilinzhou
 * @LastEditTime: 2024-02-24 14:17:06
 */
import { ParamsPage, ResponsePage } from '@/api/common/type';

// 列表请求参数
export type ProcessListParams = SearchParams & ParamsPage;

export interface SearchParams {
    orderNumber: string;
    materialCode: string;
    materialName: string;
    processNumber: string;
    processName: string;
    equipmentCode: string;
    equipmentName: string;
    workshopName: string;
    planBegin: string;
    planEnd: string;
    auxiliaryDataCoding: string;
    auxiliaryDataName: string;
}

// 列表返回参数
export interface ProcessListResponse extends ResponsePage {
    records: ProcessListRecord;
}

export interface ProcessListRecord {
    reportForWork?: boolean;
    id: number;
    orderNumber: string;
    processNumber: string;
    processName: string;
    processDescription: string;
    materialId: number;
    materialCode: string;
    materialName: string;
    workshopName: string;
    equipmentCode: string;
    equipmentName: string;
    plannedStartTime: string;
    plannedEndTime: string;
    actualEndTime: string;
    orderQuantity: number;
    plannedQuantity: number;
    completedQuantity: number;
    processSchedule: string;
    totalProcessTime: number;
    createTime: string;
    auxiliaryDataCoding: string;
    auxiliaryDataName: string;
}
